<html xmlns:th="http://www.thymeleaf.org">
<head th:include="common/common :: copyCommon"></head>

<link rel="stylesheet" href="/css/dialog.css" th:href="@{/css/dialog.css}" />
<script type="text/javascript" th:src="@{/js/sys/sysUser/edit.js}"></script>

<body style="background:white">
    <div class="l_err" style="width: 100%; margin-top: 2px;"></div>
    <form id="form" name="form" class="form-horizontal" method="post" th:action="@{/sys/sysUser/editEntity}" style="width:600px;">
        <input type="hidden" th:value="${user.id}" name="id" id="id" />
        <div class="pop-wrrap">
            <div class="form-group">
                <label class="control-label"><span class="color-red">*</span>账号：</label>
                <input type="text" class="form-control " placeholder="账号" name="loginName" id="loginName" th:value="${user.loginName}"/>
            </div>
            <div class="form-group">
                <label class="control-label">用户名：</label>
                <input type="text" class="form-control " placeholder="用户昵称" name="userName" id="userName" th:value="${user.userName}"/>
            </div>
            <div class="form-group">
                <label class="control-label">密码：</label>
                <input type="password" class="form-control " placeholder="密码(空则不改变密码)" name="password" id="password" />
            </div>
            <div class="form-group" style="height:100px">
                <label class="control-label">备注：</label>
                <textarea rows="4" cols="10" class="form-control" placeholder="内容" name="description" id="description" style="height:100px" th:value="${user.description}"></textarea>
            </div>
            <div class="form-group" >
                <label class="control-label">用户角色：</label>
                <div>
                    <ul style="float:left; padding:10px;text-align: left;">
                        <li th:each="role, stat : ${roles}" >
                            <input name="roles" type="checkbox" th:value="${role.id}" />
                            <label th:text="${role.name}"></label>
                        </li>
                    </ul>
                </div>
            </div>
            <footer class="panel-footer text-right bg-light lter">
                <div class="main_rmc_operate">
                    <button type="submit" class="main_rmc_btn main_rmc_btn_success submit">确定</button>
                    <button type="button" class="main_rmc_btn cancel">取消</button>
                </div>
            </footer>
         </div>
    </form>
</body>

<script type="text/javascript">

</script>

</html>